import axios from "@/utils/axios";


export function uploadAttachment(data) {
    return axios({
        url: "/attachment/upload",
        method: 'POST',
        headers: {'Content-Type': 'multipart/form-data'},
        data
    })
}

export function getAttachmentList(params) {
    return axios({
        url: '/attachment/list',
        method: "POST",
        params: params
    })
}

export function updateAttachmentName(data) {
    return axios({
        url: '/attachment/update',
        method: 'POST',
        data
    })
}

export function deleteAttachment(params) {
    return axios({
        url: '/attachment/delete',
        method: 'POST',
        params
    })
}
